﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using LinqToSQL.stuff;

namespace LinqToSQL
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        public void button1_Click(object sender, EventArgs e)
        {
            Action test;
            //LambdaAndDelegates.p();
            //Linq.chainOfQueriesExample();
            //Linq.DeferredExecutionExample();
            //Linq.AggregationTest();
            //Linq.GroupTest();
            //test = LambdaAndDelegates.YieldTest;
            //test = Other.RegEx.GroupTest;
            //test = Other.AsyncExecution.Test;
            //test = Linq.DetailedJoinExample.Tester.run;
            //test = LinqToSQLExamples.FirstExample.run;
            //test = LinqToSQLExamples.SecondExample.run;
            //test = LinqToSQLExamples.ModifyDataExample.run;
            //test = Linq.SimpleTests;
            //test = Linq.CustomJoins.LeftOuterJoinExample;
            //test = Linq.IteratingInnerLists.run;
            //test = LinqToSQL.linqToSQL.Test.Instance.FirstTest;
            //test = LinqToSQL.linqToSQL.Test.Instance.InmediateRetrieve;
            //test = LinqToSQL.linqToSQL.Test.Instance.DirectSqlQuery;
            //test = LinqToSQL.Manning.Linq.Instance.XmlTest;
            //test = LinqToSQL.Manning.Other.Instance.p;
            //test = Manning.Other.Instance.InitializersTest;
            //test = Manning.Expressions.Instance.simpleExample;
            //test = Manning.Linq.Instance.AggregateExample;
            test = Linq.CustomJoins.Instance.CompositeKey;
            test = Linq.CustomJoins.Instance.GroupJoinExample;
            test = Linq.IntoExamples.test;
            test();
        }        
    }
}
